//
//  BHCirclePublishRelationInfoModel.swift
//  BigHealth
//
//  Created by 蔺百好 on 2021/8/9.
//

import UIKit

class BHCirclePublishRelationInfoModel: NSObject {
    var relationName: String = ""
    var cityName: String = ""
    var distance: String = ""
    var areaName: String = ""
    var relationId: String = ""
    var beginTime: String = ""
    var relationPic: String = ""
    
    
    //  1场馆 2赛事 3趣玩 本地记录
    var type: Int = 1
    


    func parseDic(_ dic: [String: Any]) {
        self.relationName = BHJsonTool.decodeStringFromDic(dic: dic, key: "relationName")
        self.cityName = BHJsonTool.decodeStringFromDic(dic: dic, key: "cityName")
        self.distance = BHJsonTool.decodeStringFromDic(dic: dic, key: "distance")
        self.areaName = BHJsonTool.decodeStringFromDic(dic: dic, key: "areaName")
        self.beginTime = BHJsonTool.decodeStringFromDic(dic: dic, key: "beginTime")
        self.relationPic = BHJsonTool.decodeStringFromDic(dic: dic, key: "relationPic")
        self.relationId = BHJsonTool.decodeStringFromDic(dic: dic, key: "id")

    }
}
